home *** CD-ROM | disk | FTP | other *** search
- Path: news1.radix.net!news
- From: jfw@radix.net (Jim Ward)
- Newsgroups: comp.lang.c
- Subject: Re: How to Display a File Backwards?
- Date: 20 Feb 1996 02:46:19 GMT
- Organization: RadixNet Internet Services
- Message-ID: <4gbclr$c7s@news1.radix.net>
- References: <4g3eplINNo0k@keats.ugrad.cs.ubc.ca> <4g51cj$t6o@newsbf02.news.aol.com>
- NNTP-Posting-Host: dialin4.annex1.radix.net
- Mime-Version: 1.0
- Content-Type: Text/Plain; charset=US-ASCII
- X-Newsreader: WinVN 0.99.7
-
- In article <4g51cj$t6o@newsbf02.news.aol.com>, asciizero@aol.com says...
- >I have a message log file (text) that gets updated on a regular basis
- >depending on what errors the system detects during the course of its
- >operation. Now, I want a tool that would display the contents of the
- >message log beginning from the last line or the latest entry.
-
- If I were doing it, I would prefix all my messages with a keyword that would
- never be included in the message text (such as "MESSAGE"), fseek() to the
- end of the file, and search backwords for the next keyword.
-
- Jim Ward
-
-
-
-
-
-
-
-
-
-
-
-